From: Carlos Garnacho Date: Mon, 27 Sep 2021 20:45:47 +0000 (+0200) Subject: windowManager: Set up unfullscreen/app-switch gestures in the capture phase X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~536^2^2~68 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=254b0ca2ad0700a301c2b2e9c0ad50637bdbf46d;p=gnome-shell.git windowManager: Set up unfullscreen/app-switch gestures in the capture phase Use the new API to specify the gesture phase. Part-of: --- diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index caaecec41..72cadd9ac 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -936,7 +936,7 @@ var WindowManager = class { let appSwitchAction = new AppSwitchAction(); appSwitchAction.connect('activated', this._switchApp.bind(this)); - global.stage.add_action(appSwitchAction); + global.stage.add_action_full('app-switch', Clutter.EventPhase.CAPTURE, appSwitchAction); let mode = Shell.ActionMode.ALL & ~Shell.ActionMode.LOCK_SCREEN; let topDragAction = new EdgeDragAction.EdgeDragAction(St.Side.TOP, mode); @@ -954,7 +954,7 @@ var WindowManager = class { global.display.connect('notify::focus-window', updateUnfullscreenGesture); global.display.connect('in-fullscreen-changed', updateUnfullscreenGesture); - global.stage.add_action(topDragAction); + global.stage.add_action_full('unfullscreen', Clutter.EventPhase.CAPTURE, topDragAction); this._workspaceAnimation = new WorkspaceAnimation.WorkspaceAnimationController();